package com.gwnet.rider.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gwnet.rider.domain.RiderResignation;
import com.gwnet.rider.domain.bo.RiderResignationApplyBO;
import com.gwnet.rider.domain.bo.RiderResignationPageBO;

/**
 * <p>
 * 骑手离职表 服务类
 * </p>
 *
 * @author WangLiang
 * @since 2024-08-09
 */
public interface RiderResignationService extends IService<RiderResignation> {

    /**
     * 骑手申请离职
     * @param applyBO
     * @return
     */
    Boolean applyResignation(RiderResignationApplyBO applyBO);


    /**
     * 提交申请
     * @param resignation
     * @return
     */
    Boolean submit(RiderResignation resignation);


    /**
     * 审核通过
     * @param resignation
     * @return
     */
    Boolean pass(RiderResignation resignation);

    /**
     * 平台分页查询列表数据
     * @param pageBO
     * @return
     */
    Page<RiderResignation> page(RiderResignationPageBO pageBO);

}
